@echo off
REM  Run this bat-file from \addressbook-web-tests\ folder.  

IF NOT EXIST groups.xml (echo File groups.xml is NOT found. Generating...

java -cp bin;c:\Project\Xstream\xstream-1.4.4\lib\xstream\xpp3_min-1.1.4c.jar;c:\Project\Xstream\xstream-1.4.4\lib\xstream\xmlpull-1.1.3.1.jar;c:\Project\Xstream\xstream-1.4.4\lib\xstream-1.4.4.jar com.example.tests.GroupDataGenerator 10 groups.xml xml

echo  groups.xml is generated under \addressbook-web-tests\)

echo =========================================================================

IF NOT EXIST contacts.xml (echo File contacts.xml is NOT found. Generating...

java -cp bin;c:\Project\Xstream\xstream-1.4.4\lib\xstream\xpp3_min-1.1.4c.jar;c:\Project\Xstream\xstream-1.4.4\lib\xstream\xmlpull-1.1.3.1.jar;c:\Project\Xstream\xstream-1.4.4\lib\xstream-1.4.4.jar com.example.tests.ContactDataGenerator 10 contacts.xml xml

echo  contacts.xml is generated under \addressbook-web-tests\)

echo =========================================================================

REM echo To launch tests press ENTER
REM pause

echo Tests launched
java -cp  bin;c:\Project\Xstream\xstream-1.4.4\lib\xstream\xpp3_min-1.1.4c.jar;c:\Project\Xstream\xstream-1.4.4\lib\xstream\xmlpull-1.1.3.1.jar;c:\Project\Xstream\xstream-1.4.4\lib\xstream-1.4.4.jar;C:\Project\SeleniumSS2.33.0\selenium-server-standalone-2.33.0.jar -DconfigFile=firefox.properties org.testng.TestNG testng-customsuite.xml

pause